Skip to content

Comments

Feature/issue 211/create ci for frontend#213

Merged
Siyuan106 merged 8 commits intodevfrom
feature/issue-211/create-CI-for-frontend
Mar 11, 2025
Merged

Feature/issue 211/create ci for frontend#213
Siyuan106 merged 8 commits intodevfrom
feature/issue-211/create-CI-for-frontend

Conversation

@Siyuan106
Copy link
Contributor

Issue(s):

#211

Type of change: (choose required ones)

  • New feature

Description:

The front-end CI process automates testing and building for the AI learning tool's Vue.js application. It runs Jest unit tests to verify component interactions, checks for JavaScript syntax errors, and builds the production version. This process utilizes the Vue 3, Jest, Axios, and Vue Router technology stack to ensure code quality and prevent regressions when developing new features.

Additional context:

N/A.

Testing instructions:

Run "npm run test:unit" in frontend directory to start the test.

Add CI for frontend
Add unit tests for App.vue, color.js and language.js.
Add unit tests for Cookie.vue, Login.vue and MainView.vue
Add unit tests for HistorySidebar.vue, MainContent.vue and SettingSidebar.vue
@Siyuan106 Siyuan106 added Frontend Issue relates to frontend code. Github Issue relates to Github functionality (eg. runners). Final Issue relates to Final release. labels Mar 11, 2025
@Siyuan106 Siyuan106 added this to the Final Release milestone Mar 11, 2025
@Siyuan106 Siyuan106 self-assigned this Mar 11, 2025
Liuwf4319
Liuwf4319 previously approved these changes Mar 11, 2025
Copy link
Contributor

@Liuwf4319 Liuwf4319 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highly effective test files. Good work

Copy link
Collaborator

@GerardChabaBristol GerardChabaBristol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub Action ran successfully and the tests look good, however, I believe Russian isn't included in the tests in language.spec.js.

Add test for Russian translation in language.spec.js.
Copy link
Collaborator

@GerardChabaBristol GerardChabaBristol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, all good now.

Copy link
Contributor

@Liuwf4319 Liuwf4319 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2

@Siyuan106 Siyuan106 merged commit c6c80f6 into dev Mar 11, 2025
2 checks passed
@Siyuan106 Siyuan106 deleted the feature/issue-211/create-CI-for-frontend branch March 11, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Final Issue relates to Final release. Frontend Issue relates to frontend code. Github Issue relates to Github functionality (eg. runners).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants